#pragma once
#include <QAudioInput>
#include <QAudioFormat>
#include <QIODevice>

class AudioInput : public QObject {
    Q_OBJECT
public:
    explicit AudioInput(QObject* parent = nullptr);
    ~AudioInput();

    void start();
    void stop();

private slots:
    void handleReadyRead();

private:
    QAudioInput* m_audioInput;
    QIODevice* m_inputDevice;
};